import React from "react";
import { AppBar, Tabs, Tab } from "@material-ui/core";
import amchartsCom from "./amchartsCom";
import Data from "./mock";
class AmSampleLine extends React.Component {
  constructor(props) {
    super(props);
    this.state = {
      value: 0,
    };
  }
  componentDidMount() {}
  handleChange = (event, newValue) => {
    this.setState({ value: newValue });
  };
  componentWillUnmount() {}
  render() {
    const { value } = this.state;
    return (
      <React.Fragment>
        <div id="main-div" style={{ width: "100%", height: "500px" }}></div>
        <section className="legend-contain">
          <AppBar position="static">
            <Tabs
              value={value}
              onChange={this.handleChange}
              aria-label="simple tabs example"
            >
              <Tab label="保单存续" />
              <Tab label="退保演示" />
            </Tabs>
          </AppBar>
        </section>
      </React.Fragment>
    );
  }
}
export default AmSampleLine;
